The following SQL return codes indicate SQL-specific runtime or error conditions that might be returned by the eXtremeDB runtime while processing SQL statements:
Mnemonic Constant NameValueMeaningSQL_OK0Successful SQL executionNO_MORE_ELEMENTS1End of result set reachedINVALID_TYPE_CAST2Attempt to cast to an invalid SQL typeCOMPILE_ERROR3Error compiling SQL statementNOT_SINGLE_VALUE4Result set with more than one row returnedINVALID_OPERATION5Not a valid SQL operationINDEX_OUT_OF_BOUNDS6Attempt to access outside of array boundsNOT_ENOUGH_MEMORY7Out of memory executing SQL statementNOT_UNIQUE8Attempt to insert a record with duplicate identifier valueNOT_PREPARED9Attempt to execute a pre-compiled statement that was not preparedRUNTIME_ERROR10Unknown SQL runtime errorCOMMUNICATION_ERROR11Unknown communication errorUPGRADE_NOT_POSSIBLE12Unable to upgrade transaction toREAD_WRITE
SQL_CONFLICT13SQL conflict while updating a recordSQL_NULL_REFERENCE14Attempt to dereference a NULL referenceSQL_INVALID_STATE15Invalid executor stateSQL_INVALID_OPERAND16Invalid function operandSQL_NULL_VALUE17A null value encountered in a context not accepting null valuesSQL_BAD_CSV_FORMAT18Wrong format in CSV fileSQL_SYSTEM_ERROR19Internal SQL engine error